#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Alexander Pyhalov
#

include ../../../make-rules/shared-macros.mk

COMPONENT_NAME= 	pg_repack
COMPONENT_VERSION= 	1.3.2
COMPONENT_REVISION=	1
COMPONENT_SUMMARY= 	pg_repack - utility to reorganize PostgreSQL tables on-line
COMPONENT_SRC= 		$(COMPONENT_NAME)-$(COMPONENT_COMMIT)
COMPONENT_ARCHIVE= 	$(COMPONENT_SRC).zip
COMPONENT_COMMIT=       b0be609adf2579f81e86d77802710211e63e72dc
COMPONENT_ARCHIVE_HASH= \
  sha256:82edbacf7ace9ebefccecaa04150e763a1f16675fd5a566f97bd7e810a12d41c
COMPONENT_ARCHIVE_URL= \
  https://github.com/reorg/pg_repack/archive/$(COMPONENT_COMMIT).zip
COMPONENT_PROJECT_URL = http://reorg.github.io/pg_repack/

PG_VERSION=	9.5
# Don't depend on host default pg_config
PATH=		$(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin

include $(WS_TOP)/make-rules/prep.mk
include $(WS_TOP)/make-rules/justmake.mk
include $(WS_TOP)/make-rules/ips.mk

COMPONENT_BUILD_ENV	+=	USE_PGXS=0

build: $(BUILD_32_and_64)

install: $(INSTALL_32_and_64)
